package cn.wen.springframework.context.support;import cn.wen.springframework.beans.factory.support.DefaultListableBeanFactory;import cn.wen.springframework.beans.factory.xml.XmlBeanDefinitionReader;/** * @ClassName: AbstractXmlApplicationContext * @Author: 小飞 * @Date: 2023/3/27 20:22 * @Description: 抽象 Xml 上下文 */public abstract class AbstractXmlApplicationContext extends AbstractRefreshableApplicationContext {    @Override    protected void loadBeanDefinitions(DefaultListableBeanFactory beanFactory) {        XmlBeanDefinitionReader beanDefinitionReader = new XmlBeanDefinitionReader(beanFactory, this);        String[] configLocations = getConfigLocations();        if (null != configLocations){            beanDefinitionReader.loadBeanDefinitions(configLocations);        }    }    protected abstract String[] getConfigLocations();}